package com.hb.trade.client.project;

import com.hb.core.pojo.project.sms.dto.SmsSendLogDTO;
import org.fzzn.core.model.msg.Message;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author yuezheng
 */
@FeignClient("hb-project")
public interface SmsSendLogClient {

    /**
     * 保存短信发送日志
     *
     * @author yuezheng
     * @param smsSendLogDTO
     * @return Message
     * @date 2022/4/20 3:07 PM
     */
    @PostMapping("/smsSendLog/save")
    Message save(@RequestBody SmsSendLogDTO smsSendLogDTO);

    /**
     * 批量保存短信发送日志
     *
     * @author yuezheng
     * @param list
     * @return Message
     * @date 2022/4/20 3:07 PM
     */
    @PostMapping("/smsSendLog/saveBatch")
    Message saveBatch(@RequestBody List<SmsSendLogDTO> list);
}
